package com.changgou.business.dao;

import com.changgou.business.pojo.Advert;
import com.changgou.business.pojo.Advert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

public interface AdvertMapper extends Mapper<Advert> {

    @Select("select detail from sys_config where name = '广告位置'")
     public String getAddress();

    @Update("update tb_adv set onTop=0")
    public void updateById(Integer id);

    @Update("update tb_adv set onTop=1 where id=#{id}")
    public void UpdateonTop(Integer id);
}
